﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ASWorkbench
{
    public partial class Splash : Form
    {
        System.Windows.Forms.Timer Clock;


        //*************************************************************************************************
        //
        //          Function: Splash()
        //       Description: Constructor.  Setup the timer used to close the splash form
        //
        //*************************************************************************************************
        public Splash()
        {
            InitializeComponent();

            Clock = new System.Windows.Forms.Timer();
            Clock.Interval = 5000;
            Clock.Tick += new EventHandler(Timer_Tick);
            Clock.Start();
        }

        //*************************************************************************************************
        //
        //          Function: Timer_Tick
        //       Description: Event handler called when the timer is fired
        //
        //*************************************************************************************************
        public void Timer_Tick(object sender, EventArgs eArgs)
        {
            Clock.Stop();
            this.Close();
        }

    }
}
